<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp"%>
<!DOCTYPE HTML>
<html>
	<head>
	    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width" />
        <style type="text/css" media="screen">
			html, body	{ height:100%; }
			body { margin:0; padding:0; overflow:auto; }
			#flashContent { display:none; }
        </style>
		<link rel="stylesheet" type="text/css" href="${ctx}/css/flexpaper.css" />
		<script type="text/javascript" src="<c:url value='/ui/jquery.min.js'/>"></script>
		<script type="text/javascript" src="<s:url value='/common/js/flexpaper.js'/>"></script>
		<script type="text/javascript" src="<s:url value='/common/js/flexpaper_handlers.js'/>"></script>
	</head>
	<body>
			<script type="text/javascript">
			var ctx = '${ctx}';
			$(function(){
				//ctx+"/common/swfView.action?entity.url="+$('#url').val()+"&t="+(new Date()).valueOf()
				$('#documentViewer').FlexPaperViewer({
					 config : {
						 SwfFile : ctx+"/common/Line!swfView.action?url="+$('#url').val()+"&t="+(new Date()).valueOf(),
						 Scale : 1, 
						 ZoomTransition : 'easeOut',
						 ZoomTime : 0.5, 
						 ZoomInterval : 0.2,
						 FitPageOnLoad : true,
						 FitWidthOnLoad : false, 
						 FullScreenAsMaxWindow : false,
						 ProgressiveLoading : false,
						 MinZoomSize : 0.2,
						 MaxZoomSize : 5,
						 SearchMatchAll : false,
						 InitViewMode : 'Portrait',
						 RenderingOrder : 'flash,html',
						 jsDirectory :ctx+"/common/js/",
						 localeDirectory :ctx+"common/",
						 ViewModeToolsVisible : true,
						 ZoomToolsVisible : true,
						 PrintEnabled :false,
						 PrintToolsVisible:false,
						 NavToolsVisible : true,
						 CursorToolsVisible : true,
						 SearchToolsVisible : true,
						 DocSizeQueryService : "",
						 key : '',
						 WMode : 'window',
						 localeChain: 'zh_CN'
						 }
				});
			});
		</script>
		<s:hidden id="url" name="url"></s:hidden>
	  <div id="documentViewer" class="flexpaper_viewer"></div>
	</body>
</html>

